<template>
  <div class="box">
    <button @click="goHome">回到首页</button>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
let router = useRouter()
function goHome() {
  router.push('/home')
}
</script>

<style>
.box {
  width: 100%;
  height: 100%;
  background: url('../../assets/icons/images/error_images/404.png') no-repeat;
  background-size: 100% 100%;
  button {
    display: block;
    background-color: cornflowerblue;
    border: solid 1px #855;
    border-radius: 10px;
    width: 100px;
    height: 50px;
  }
}
</style>
